<template>
	<el-dialog title="秀字体" :visible="pickSubmit.status" width="500px" :before-close="handleCancel">
		<p>多种字体可供选择，添加过多影响制作和打开速度。</p>
		<span slot="footer" class="dialog-footer">
			<el-button size="mini" @click="handleCancel">取 消</el-button>
			<el-button size="mini" type="primary" @click="handleConfirm">确 定</el-button>
		</span>
	</el-dialog>
</template>

<script>
	
	export default {
		name: 'PickSubmit',
		data() {
			return {
				curPickFont: {
					content: '点击此处进行编辑'
				}
			}
		},
		computed: {
			pickSubmit() {
				return this.$store.getters.pickSubmit
			}
		},
		methods: {
			handleCancel() {
				this.$store.commit('SET_PICK_SUBMIT', false)
			},
			handleConfirm() {
				this.pickSubmit && this.pickSubmit.callback && this.pickSubmit.callback(this.curPickFont)
				this.handleCancel()
			}

		}
	}
</script>
